package com.gaogzhen.algorithm.leetCode.daily;

import cn.hutool.core.util.RandomUtil;

/**
 * @author: Administrator
 * @createTime: 2023/03/06 22:05
 */
public class TestDaily {
    public static void main(String[] args) {
        // testD20230306();
        testD20230313();
    }

    public static void testD20230313() {
        int initialEnergy = 1, initialExperience = 1;
        int[] energy = {1,1,1,1};
        int[] experience = {1,1,1,50};
        System.out.println(new D20230313().minNumberOfHours(initialEnergy, initialExperience, energy, experience));
    }

    public static void testD20230306() {
        // int n = 10;
        //
        // StringBuilder builder = new StringBuilder();
        // for (int i = 0; i < n; i++) {
        //     builder.append(RandomUtil.randomChar("ab"));
        // }
        // String s = builder.toString();
        String s = "ababaaaabbbbbaaababbbbbbaaabbaababbabbbbaabbbbaabbabbabaabbbababaa";
        System.out.println(s.length());
        System.out.println(s + "===" + new D20230306().minimumDeletions(s));
    }
}
